package com.shop.shoporder.entity.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.Date;
import java.util.List;
//@JsonInclude(JsonInclude.Include.NON_NULL)
public class ViewAdminOrderDetails {
    private Integer orderId;

    private String orderNo;

    private Integer number;

    private String orderStatusname;

    private Double orderMoney;

    private String orderStatus;

    public String getIsInvoicename() {
        return isInvoicename;
    }

    public void setIsInvoicename(String isInvoicename) {
        this.isInvoicename = isInvoicename;
    }

    private String isInvoicename;
    public String getUsernoName() {
        return usernoName;
    }

    public void setUsernoName(String usernoName) {
        this.usernoName = usernoName;
    }

    private String usernoName;
    private Integer usernoId;

    private Double coupon;

    private Double cashCoupon;

    private Double inter;

    private Double costInter;

//    public Order(Integer number, String orderStatus) {
//        this.number = number;
//        this.orderStatus = orderStatus;
//    }
//
//    public Order() {
//    }

    private Double cash;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date pOrderTime;

    private String outTradeNo;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date payTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date deliveryTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date payFinishTime;

    private Double freight;

    private Double avaCoupon;

    private Double avaCashcoupon;

    private String payErrorInfo;

    private Integer addressId;

    private Double realPay;

    private Integer isOrderFrom;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date orderFromTime;

    private Integer isLaunchPay;

    private Integer checkCount;

    private Integer isInvoice;

    private String invoiceNo;

    public String getOrderStatusname() {return orderStatusname;}

    public void setOrderStatusname(String orderStatusname) {this.orderStatusname = orderStatusname;}

    public Integer getNumber() {return number;}

    public void setNumber(Integer number) {this.number = number;}

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo == null ? null : orderNo.trim();
    }

    public Double getOrderMoney() {
        return orderMoney;
    }

    public void setOrderMoney(Double orderMoney) {
        this.orderMoney = orderMoney;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus == null ? null : orderStatus.trim();
    }

    public Integer getUsernoId() {
        return usernoId;
    }

    public void setUsernoId(Integer usernoId) {
        this.usernoId = usernoId;
    }

    public Double getCoupon() {
        return coupon;
    }

    public void setCoupon(Double coupon) {
        this.coupon = coupon;
    }

    public Double getCashCoupon() {
        return cashCoupon;
    }

    public void setCashCoupon(Double cashCoupon) {
        this.cashCoupon = cashCoupon;
    }

    public Double getInter() {
        return inter;
    }

    public void setInter(Double inter) {
        this.inter = inter;
    }

    public Double getCostInter() {
        return costInter;
    }

    public void setCostInter(Double costInter) {
        this.costInter = costInter;
    }

    public Double getCash() {
        return cash;
    }

    public void setCash(Double cash) {
        this.cash = cash;
    }

    public Date getpOrderTime() {
        return pOrderTime;
    }

    public void setpOrderTime(Date pOrderTime) {
        this.pOrderTime = pOrderTime;
    }

    public String getOutTradeNo() {
        return outTradeNo;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo == null ? null : outTradeNo.trim();
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Date getDeliveryTime() {
        return deliveryTime;
    }

    public void setDeliveryTime(Date deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public Date getPayFinishTime() {
        return payFinishTime;
    }

    public void setPayFinishTime(Date payFinishTime) {
        this.payFinishTime = payFinishTime;
    }

    public Double getFreight() {
        return freight;
    }

    public void setFreight(Double freight) {
        this.freight = freight;
    }

    public Double getAvaCoupon() {
        return avaCoupon;
    }

    public void setAvaCoupon(Double avaCoupon) {
        this.avaCoupon = avaCoupon;
    }

    public Double getAvaCashcoupon() {
        return avaCashcoupon;
    }

    public void setAvaCashcoupon(Double avaCashcoupon) {
        this.avaCashcoupon = avaCashcoupon;
    }

    public String getPayErrorInfo() {
        return payErrorInfo;
    }

    public void setPayErrorInfo(String payErrorInfo) {
        this.payErrorInfo = payErrorInfo == null ? null : payErrorInfo.trim();
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public Double getRealPay() {
        return realPay;
    }

    public void setRealPay(Double realPay) {
        this.realPay = realPay;
    }

    public Integer getIsOrderFrom() {
        return isOrderFrom;
    }

    public void setIsOrderFrom(Integer isOrderFrom) {
        this.isOrderFrom = isOrderFrom;
    }

    public Date getOrderFromTime() {
        return orderFromTime;
    }

    public void setOrderFromTime(Date orderFromTime) {
        this.orderFromTime = orderFromTime;
    }

    public Integer getIsLaunchPay() {
        return isLaunchPay;
    }

    public void setIsLaunchPay(Integer isLaunchPay) {
        this.isLaunchPay = isLaunchPay;
    }

    public Integer getCheckCount() {
        return checkCount;
    }

    public void setCheckCount(Integer checkCount) {
        this.checkCount = checkCount;
    }

    public Integer getIsInvoice() {
        return isInvoice;
    }

    public void setIsInvoice(Integer isInvoice) {
        this.isInvoice = isInvoice;
    }

    public String getInvoiceNo() {
        return invoiceNo;
    }

    public void setInvoiceNo(String invoiceNo) {
        this.invoiceNo = invoiceNo == null ? null : invoiceNo.trim();
    }

    public String getLogname() {
        return logname;
    }

    public void setLogname(String logname) {
        this.logname = logname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddressAll() {
        return addressAll;
    }

    public void setAddressAll(String addressAll) {
        this.addressAll = addressAll;
    }

    public String getDetailAddr() {
        return detailAddr;
    }

    public void setDetailAddr(String detailAddr) {
        this.detailAddr = detailAddr;
    }

    private String logname;

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    private String remark;
    private String phone;
    private String addressAll;
    private String detailAddr;

    public String getLogisticalNo() {
        return logisticalNo;
    }

    public void setLogisticalNo(String logisticalNo) {
        this.logisticalNo = logisticalNo;
    }

    private String logisticalNo;

    public List<AdminOrderDetails> getAdminOrderDetails() {
        return adminOrderDetails;
    }

    public void setAdminOrderDetails(List<AdminOrderDetails> adminOrderDetails) {
        this.adminOrderDetails = adminOrderDetails;
    }

    private List<AdminOrderDetails> adminOrderDetails;

    public Integer getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Integer provinceId) {
        this.provinceId = provinceId;
    }

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public Integer getAreaId() {
        return areaId;
    }

    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }

    private Integer provinceId;
    private Integer cityId;
    private Integer areaId;

    @Override
    public String toString() {
        return "ViewAdminOrderDetails{" +
                "orderId=" + orderId +
                ", orderNo='" + orderNo + '\'' +
                ", number=" + number +
                ", orderStatusname='" + orderStatusname + '\'' +
                ", orderMoney=" + orderMoney +
                ", orderStatus='" + orderStatus + '\'' +
                ", isInvoicename='" + isInvoicename + '\'' +
                ", usernoName='" + usernoName + '\'' +
                ", usernoId=" + usernoId +
                ", coupon=" + coupon +
                ", cashCoupon=" + cashCoupon +
                ", inter=" + inter +
                ", costInter=" + costInter +
                ", cash=" + cash +
                ", pOrderTime=" + pOrderTime +
                ", outTradeNo='" + outTradeNo + '\'' +
                ", payTime=" + payTime +
                ", deliveryTime=" + deliveryTime +
                ", payFinishTime=" + payFinishTime +
                ", freight=" + freight +
                ", avaCoupon=" + avaCoupon +
                ", avaCashcoupon=" + avaCashcoupon +
                ", payErrorInfo='" + payErrorInfo + '\'' +
                ", addressId=" + addressId +
                ", realPay=" + realPay +
                ", isOrderFrom=" + isOrderFrom +
                ", orderFromTime=" + orderFromTime +
                ", isLaunchPay=" + isLaunchPay +
                ", checkCount=" + checkCount +
                ", isInvoice=" + isInvoice +
                ", invoiceNo='" + invoiceNo + '\'' +
                ", logname='" + logname + '\'' +
                ", remark='" + remark + '\'' +
                ", phone='" + phone + '\'' +
                ", addressAll='" + addressAll + '\'' +
                ", detailAddr='" + detailAddr + '\'' +
                ", logisticalNo='" + logisticalNo + '\'' +
                ", adminOrderDetails=" + adminOrderDetails +
                ", provinceId=" + provinceId +
                ", cityId=" + cityId +
                ", areaId=" + areaId +
                '}';
    }
}
